package com.example.role.service.impl;

import com.example.role.mapper.RoleMapper;
import com.example.role.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.management.relation.Role;
import java.util.List;

/**
 * @BelongsProject: shared_parking
 * @BelongsPackage: com.example.role.service.impl
 * @Author: 段彪
 * @CreateTime: 2020-06-11 10:21
 * @Description:
 */
@Service
public class RoleImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    //查询所有
    @Override
    public List<Role> getAll() {
        //下面规范相同
        List<Role> all = roleMapper.getAll();
        return all;
    }
    //根据主键id查询对象
    @Override
    public Role getRoleById(String rId) {
        return null;
    }
    //根据字段获取某个对象
    @Override
    public Role getRoleByName(String roleName) {
        return null;
    }
    //添加对象
    @Override
    public Integer addRole(Role role) {
        return null;
    }
    //逻辑删除
    @Override
    public Integer deleteRoleById(String rId) {
        return null;
    }
    //根据id修改字段名
    @Override
    public Integer updateRoleName(String rId, String roleName) {
        return null;
    }

    @Override
    public List<Role> list() {

        return null;
    }
}
